package com.tuyrt.firstcode.utils

import android.widget.Toast

/**
 * Created by tuyrt7 on 2021/4/12.
 */

fun String.showToast(duration: Int = Toast.LENGTH_SHORT) =
    Toast.makeText(AppGlobals.getApp(), this, duration).show()


fun Int.showToast(duration: Int = Toast.LENGTH_SHORT) =
    Toast.makeText(AppGlobals.getApp(), this, duration).show()